import query from '@dfeidao/atom-nodejs/db/query';
import { IncomingHttpHeaders } from 'http';
import {productid, systemid } from '../../atom/config';

interface Message {
	staff_no: string;
}


export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	const p = query(action_id, session_id, systemid);
	// 会议纪要附件-附件名称dept_name
	p.prepare('department_staff', ['cabinet_staff_no', 'department_no', 'deptname'], { productid, staff_no: message.staff_no }, 200, 1, [], []);
	const [dt] = await p.exec();
	return {dt};
}
